package com.michaelwolf.mytool.util;

import java.io.File;

public class ScriptNodeUtil {
	public static String getScriptNodeID(File scriptFile) {
		String fileName = scriptFile.getName();
		String scriptId = fileName.substring(0, fileName.indexOf("."));
		String moduleName = scriptFile.getParentFile().getParentFile().getName();
		
		return "system:" + moduleName + "." + scriptId;
	}
}
